<%@ page contentType="text/html; charset=utf-8" %>
<%@ include file="../common.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
              <link href="../CSS/style.css" rel="stylesheet">
    </head>
    <body>

<table width="100%"  border="0" cellspacing="0" cellpadding="0" background="../Images/bg.gif">
  <tr>
    <td>
<table width="777" height="609"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td valign="top">
	<jsp:include page="Top.jsp"/>
	<table width="100%"  border="0" cellspacing="0" cellpadding="0" class="tableBorder_LTR">
      <tr>
        <td height="30" align="center" bgcolor="#eeeeee">≡≡≡ <a href="index.jsp">图书管理</a> ≡≡≡</td>
      </tr>
    </table>
	<table width="100%" height="396"  border="0" cellpadding="0" cellspacing="0" class="tableBorder_LBR">
        <tr>
          <td width="26%" height="395" valign="top"><table width="100%"  border="0" cellspacing="-2" cellpadding="-2">
            <tr>
              <td width="55%" height="82" align="center" class="word_grey">&nbsp;<img src="../Images/reg.gif" width="84" height="54"></td>
              <td width="45%" align="left" class="word_grey">图书详细信息</td>
            </tr>
            <tr>
              <td height="112" colspan="2" valign="top" class="word_grey"><ul>
                  <li> 书号：图书的ID，请务必输入正确，此项不能修改。</li>
                  <li>发行日期：请输入该书首次发行的日期，如2005年10月。</li>
                  <li>封面文件：请先将图书的封面文件保存到站点的manage\cover文件夹下，再输入文件名即可，包括扩展名，如：JSPxxxtkfaljx.jpg。</li>               
                  </ul></td>
            </tr>
            <tr align="center">
              <td colspan="2" valign="middle" class="word_grey"></td>
            </tr>
          </table></td>
          <td width="5" valign="top" background="../Images/Cen_separate.gif"></td>
          <td width="73%" valign="top"><table width="100%" height="56"  border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td align="center">&nbsp;</td>
            </tr>
            <%
    //Get the identifier of the book to display
    String bookId = request.getParameter("bookId");
    if(bookId==null)bookId="201";
    BookDetails book = bookDB.getBookDetails(bookId);
    Booktype btid=new Booktype(bookId); 
%>
            <tr>
              <td align="center">
			  <form action="book_modify_deal.jsp" method="post" name="form1">
			    <table width="100%"  border="2" align="center" cellpadding="0" cellspacing="0" bordercolordark="#FF0000">
                  <tr>
                    <td width="14%" height="27">书　号:</td>
                    <td height="27"> <%=book.getBookid()%></td>
                    <td height="27">书　名:</td>
                    <td height="27"><%=book.getTitle()%>                    </td>
                  </tr>
                  <tr>
                    <td height="27">作　者:</td>
                    <td width="25%" height="27"><%=book.getName()%>                    </td>
                    <td width="15%" height="27">类别名称：</td>
                    <%
      
                    %>
                    <td width="46%" height="27"><%=btid.getName()%>
                    </td>
                  </tr>
                  <tr>
                    <td height="27">出&nbsp;版&nbsp;社：</td>
                    <td height="27"><%=book.getPubilsher()%>                    </td>
                    <td height="27">发行日期：</td>
                    <td height="27"><%=book.getYear()%>                   </td>
                  </tr>
                  <tr>
                    <td height="41">封面文件：</td>
                    <td height="41"><%=book.getCover()%>                    </td>
                    <td height="41">价　　格：</td>
                    <td height="41"><%=book.getPrice()%>
                     (元)</td>
                  </tr>
                   <tr>
                   
                    <td height="45">是否新书：</td>
                    <%
                    String newbook=book.getNewbook()==0? "否":"是";
                    %>
                    <td> <table width="100%"><tr><td><td><%=newbook%></td></tr></table></td>
                    <td></td>
                    <td></td>
                  </tr>
                  <tr>
                    <td height="103">图书简介：</td>
                    <td colspan="3"><%=book.getDescription()%></td>
                  </tr>
                  <tr>
                    <td height="38" colspan="4" align="center">

                        <input name="Submit3" type="button" class="btn_grey" value="返回" onClick="JScript:history.back()">                    </td>
                  </tr>
                </table>
			  </form>
			  </td>
            </tr>
          </table></td>
        </tr>
      </table>
      <jsp:include page="copyright.jsp"/>
    </td>
  </tr>
</table>
</td>
  </tr>
</table>
    </body>
</html>
